package pub.wkq.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * <h1>登录或注册</h1>
 *
 * @author 王开琦
 * @date 2023/6/5
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminBO {
    @NotEmpty(message = "用户名不能为空")
    private String username;
    @NotEmpty(message = "密码不能为空")
    private String password;
}
